package com.example.baiduai.exception;



import lombok.Data;

@Data
public class PlatformException extends RuntimeException {

    private Integer code;
    private String msg ;

    private static PlatformException plEx= new PlatformException();

    public PlatformException(String msg) {
        code = 500;
        setMsg(msg);
    }

    public PlatformException() {
    }

    public PlatformException(Integer ecode, String emsg) {
        this.code = ecode;
        this.msg = emsg;
    }

    @Override
    public String getMessage() {
        return msg;
    }

}
